package com.jcf.springboot.service.impl;

import com.jcf.springboot.entity.business.Actor;
import com.jcf.springboot.entity.business.vo.ActorDef;
import com.jcf.springboot.mapper.ActorMapper;
import com.jcf.springboot.service.ActorService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jjj
 * @since 2021-03-25
 */
@Service
public class ActorServiceImpl extends ServiceImpl<ActorMapper, Actor> implements ActorService {

    @Override
    public List<ActorDef> getActorList() {
        System.out.println("methodb running in thread: " + Thread.currentThread().getName());
        return this.baseMapper.getActorList();
    }

    @Override
    public List<ActorDef> getActorByFilmId(String id) {
        return this.baseMapper.getActorByFilmId(id);
    }
}
